#pragma once
#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<assert.h>
using namespace std;

namespace xlf
{
	class string
	{
	public:
		typedef char* iterator;

		iterator begin();
		iterator end();

		//string()
		string(const char* str = "");
		
		~string();

		const char* c_str() const;

		size_t size() const;

		char& operator[](size_t pos);

	private:
		char* _str;
		size_t _size;
		size_t _capacity;
	};
}

